package com.supplychainapi.service;

import com.github.pagehelper.PageInfo;
import com.joindata.inf.common.basic.exceptions.ServiceException;
import com.supplychainapi.domain.DepartmentDto;
import com.supplychainapi.model.Tbdepartment;
import com.supplychainapi.param.ColTitle;

import java.util.List;

public interface ITbdepartmentService {

    boolean save(Tbdepartment model) throws ServiceException;

    boolean update(Tbdepartment model) throws ServiceException;

    boolean delete(Tbdepartment model) throws ServiceException;

    Tbdepartment selectById(Tbdepartment model) throws ServiceException;

    PageInfo<DepartmentDto> selectAll(Tbdepartment model, Integer pageNum, Integer pageSize) throws ServiceException;


    PageInfo<DepartmentDto> search(Tbdepartment model,Integer pageNum,Integer pageSize) throws ServiceException;

     List<ColTitle> getSchema();


    List<ColTitle> getSelectSchema();


    List<DepartmentDto> getAll(String shopGuid);
}
